package demo1.Assignment4;

public class Context {
    private TaxCalculate taxCalculate;

    public Context(TaxCalculate taxCalculate) {
        this.taxCalculate = taxCalculate;
    }

    public double executeStrategy(Double amount){
        return taxCalculate.calculateTax(amount);
    }
}
